package com.wwwarehouse.carddesk.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * <pre>
 *     author : xiaofei.he
 *     time   : 2017/11/16
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class CardDeskGroupGetGroupBean {

    /**
     * list : [{"buId":260001,"buIdManagerType":"creator","buName":"网仓科技","cardManagerType":"creator","faceUrl":"https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg","isDelayed":0,"isLogin":0,"mobile":"18268258367","personName":"程伟","ranking":5,"userId":10001831},{"buId":260001,"buIdManagerType":"creator","buName":"网仓科技","cardManagerType":"supervisor","faceUrl":"https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg","isDelayed":0,"isLogin":0,"mobile":"18268258367","personName":"程伟","ranking":5,"userId":10001831},{"buId":260001,"buIdManagerType":"creator","buName":"网仓科技","cardManagerType":"regulator","faceUrl":"https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg","isDelayed":0,"isLogin":0,"mobile":"18268258367","personName":"程伟","ranking":5,"userId":10001831}]
     * page : 1
     * size : 10
     * total : 3
     */

    private int page;
    private int size;
    private int total;
    private List<ListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {

        /**
         * buId : 260001
         * buIdManagerType : creator
         * <p>
         * buName : 网仓科技
         * cardManagerType : creator
         * faceUrl : https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg
         * isDelayed : 0
         * isLogin : 0
         * mobile : 18268258367
         * personName : 程伟
         * ranking : 5
         * userId : 10001831
         */

        private String buId;
        private String buIdManagerType;
        private String buName;
        private String cardManagerType;
        private String faceUrl;
        private Integer isDelayed;
        private int isLogin;
        private String mobile;
        private String personName;
        private Integer ranking;
        private String userId;


        public String getBuId() {
            return buId;
        }

        public void setBuId(String buId) {
            this.buId = buId;
        }

        public String getBuIdManagerType() {
            return buIdManagerType;
        }

        public void setBuIdManagerType(String buIdManagerType) {
            this.buIdManagerType = buIdManagerType;
        }

        public String getBuName() {
            return buName;
        }

        public void setBuName(String buName) {
            this.buName = buName;
        }

        public String getCardManagerType() {
            return cardManagerType;
        }

        public void setCardManagerType(String cardManagerType) {
            this.cardManagerType = cardManagerType;
        }

        public String getFaceUrl() {
            return faceUrl;
        }

        public void setFaceUrl(String faceUrl) {
            this.faceUrl = faceUrl;
        }

        public Integer getIsDelayed() {
            return isDelayed;
        }

        public void setIsDelayed(Integer isDelayed) {
            this.isDelayed = isDelayed;
        }

        public int getIsLogin() {
            return isLogin;
        }

        public void setIsLogin(int isLogin) {
            this.isLogin = isLogin;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getPersonName() {
            return personName;
        }

        public void setPersonName(String personName) {
            this.personName = personName;
        }

        public Integer getRanking() {
            return ranking;
        }

        public void setRanking(Integer ranking) {
            this.ranking = ranking;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.buId);
            dest.writeString(this.buIdManagerType);
            dest.writeString(this.buName);
            dest.writeString(this.cardManagerType);
            dest.writeString(this.faceUrl);
            dest.writeValue(this.isDelayed);
            dest.writeInt(this.isLogin);
            dest.writeString(this.mobile);
            dest.writeString(this.personName);
            dest.writeValue(this.ranking);
            dest.writeString(this.userId);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.buId = in.readString();
            this.buIdManagerType = in.readString();
            this.buName = in.readString();
            this.cardManagerType = in.readString();
            this.faceUrl = in.readString();
            this.isDelayed = (Integer) in.readValue(Integer.class.getClassLoader());
            this.isLogin = in.readInt();
            this.mobile = in.readString();
            this.personName = in.readString();
            this.ranking = (Integer) in.readValue(Integer.class.getClassLoader());
            this.userId = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }
}
